﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="edit-privateMessage.aspx.cs" Inherits="Admin_PrivateMessage_edit_privateMessage"  %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../../Javascripts/Common/DatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
    DisplayMode="List" ShowMessageBox="true"  ShowSummary="false" 
    EnableClientScript="true" HeaderText="Following fields are required" />
    <table cellpadding="10" border="0" cellspacing="10" width="80%">
        <tr>
            <td colspan="4" class="heading-text">
                Edit PrivateMessage
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td colspan="4" align="left" valign="top">
                <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" 
                    onclick="btnSave_Click"  />
               
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>From user</b>
            </td>
            <td align="left" valign="top" colspan="3">
              
               <asp:DropDownList ID="ddlFromUser" runat="server" Width="155px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>To User</b>
            </td>
            <td align="left" valign="top" colspan="3">
               <asp:DropDownList ID="ddlToUser" runat="server" Width="155px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>Receiver EmailID</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:TextBox ID="txtEmailId" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>Subject</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:TextBox ID="txtSubject" runat="server" Width="150px"></asp:TextBox><asp:RequiredFieldValidator
                    ID="rfvtxtSubject" ControlToValidate="txtSubject" Display="None" runat="server" ErrorMessage="Subject"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr>
            <td align="left" valign="top">
                <b>Content</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <div>
                    <FCKeditorV2:FCKeditor ID="fckContent" runat="server" Width="600px" Height="500px"
                        Debug="false">
                    </FCKeditorV2:FCKeditor>
                    &nbsp;</div>
                <asp:RequiredFieldValidator ID="rfvfckContent" ControlToValidate="fckContent" Display="None" runat="server" ErrorMessage="Content"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>Send Date</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:TextBox ID="txtDate" runat="server" Width="150px" onkeypress="return false;"
                    BackColor="#E0E0E0"></asp:TextBox>
                <a href="#" onclick="displayDatePicker('<%= txtDate.ClientID.Replace("_", "$")%>'); return false;">
                    <img alt="" style="border: 0px none;" src='<%= Page.ResolveUrl("~/App_Themes/AdminDefault/image/Calendar.png") %>'
                        id="imgFromDate"  />
                </a><a href="" onclick="javascript:document.getElementById('<%=txtDate.ClientID  %>').value='';return false; ">
                    Clear</a>
                <asp:RequiredFieldValidator ID="rfvDate" ControlToValidate="txtDate" Display="None" runat="server" ErrorMessage="Date"></asp:RequiredFieldValidator>   
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>IsSendEmail</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:CheckBox ID="chkIsSendEmail" runat="server" />
            </td>
        </tr>
        
        <tr>
            <td align="left" valign="top">
                <b>IsMarketPlaceMessage</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:CheckBox ID="chkIsMarketPlaceMessage" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>IsRead</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:CheckBox ID="chkIsRead" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <b>Active</b>
            </td>
            <td align="left" valign="top" colspan="3">
                <asp:CheckBox ID="chkActive" runat="server" />
            </td>
        </tr>
       
    </table>
</asp:Content>

